package views
{
	import inerface.ITextPanel;
	
	import main.ViewSubBase;
	
	import panel.publicPanel.TextPanel;
	
	public class TextPanelView extends ViewSubBase
	{
		private var _panel:ITextPanel;
		public function TextPanelView()
		{
			super();
		}
		
	    public function showDataPanel(value:String):void
		{
			if(!_panel) 
			{
				_panel = new TextPanel() as ITextPanel;
				_panel.init(this.layout.stage,this.resourceLoader,this.lang,this.data.uri);
			}
			_panel.show(value);
			this.addView(_panel);
			
		}
		
	}
}